-- GENERATED SPELL FOR [Hukku's Imp] --


function spell0_8658(pUnit, Event) --@Fire Shield,n/a--
pUnit:FullCastSpellOnTarget(11770,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8658', 593, 1)
end

function spell1_8658(pUnit, Event) --@Firebolt,n/a--
pUnit:FullCastSpellOnTarget(11762,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8658', 2500, 1)
end

function Sorts_8658(pUnit, Event)
local choix_sorts_8658 = math.random(0, 1)
if choix_sorts_8658 == 0 then
pUnit:RegisterEvent('spell0_8658', 1, 1)
end
if choix_sorts_8658 == 1 then
pUnit:RegisterEvent('spell1_8658', 1, 1)
end
end

function mob8658_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8658', math.random(1500, 3000), 1)
end

function mob8658_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8658_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8658_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8658, 1, 'mob8658_Action')
RegisterUnitEvent(8658, 2, 'mob8658_Leave')
RegisterUnitEvent(8658, 3, 'mob8658_Kill')
RegisterUnitEvent(8658, 4, 'mob8658_Die')
